#ifndef  __FORID_RAM_6111__
#define  __FORID_RAM_6111__

/******* System information *******/

#define   CPU_OSC           (7372800UL)

//#define   CPU_OSC           (11059200UL)
//#define   CPU_OSC           (14745600UL)
#define   RTC_OSC           (32768UL)


/******* LED & BEEP GPIO *******/
#define   LED0_GPIO_PORT    A
#define   LED0_GPIO_PIN     PA4

#define   LED1_GPIO_PORT    A
#define   LED1_GPIO_PIN     PA5

#define   LED2_GPIO_PORT    A
#define   LED2_GPIO_PIN     PA6

#define   BEEP_GPIO_PORT    A
#define   BEEP_GPIO_PIN     PA7


/*******CC1100 I/O Interface*******/
#define   IO_SPI_MOSI_PORT  B
#define   IO_SPI_MOSI_PIN   PB3

#define   IO_SPI_MISO_PORT  B
#define   IO_SPI_MISO_PIN   PB2

#define   IO_SPI_SCK_PORT   B
#define   IO_SPI_SCK_PIN    PB1

#define   IO_SPI_CSN_PORT   D
#define   IO_SPI_CSN_PIN    PD7

#define   CC1100_GDO0_PORT  D
#define   CC1100_GDO0_PIN   PD3

#define   CC1100_GDO2_PORT  D
#define   CC1100_GDO2_PIN   PD5


/*******CC2500 I/O Interface*******/
#define   SPI_MOSI_PORT  B
#define   SPI_MOSI_PIN   PB5

#define   SPI_MISO_PORT  B
#define   SPI_MISO_PIN   PB6

#define   SPI_SCK_PORT   B
#define   SPI_SCK_PIN    PB7

#define   SPI_CSN_PORT   D
#define   SPI_CSN_PIN    PD6

#define   SPI_SS_PORT    B
#define   SPI_SS_PIN     PB4

#define   CC2500_GDO0_PORT  D
#define   CC2500_GDO0_PIN   PD2

#define   CC2500_GDO2_PORT  D
#define   CC2500_GDO2_PIN   PD4


/*******UART I/O Interface*******/
#define   UART_RXD_PORT     D
#define   UART_RXD_PIN      PD0

#define   UART_TXD_PORT     D
#define   UART_TXD_PIN      PD1

#define   RS485_EN_PORT     B
#define   RS485_EN_PIN      PB0


/*******WIEGAND I/O Interface*******/
#define   WIEGAND_CTX_PORT  A
#define   WIEGAND_CTX_PIN   PA2

#define   WIEGAND_CRX_PORT  A
#define   WIEGAND_CRX_PIN   PA3


#endif

